<%@ tag import="java.math.BigInteger" %>
<%@attribute name="n" required="true" type="java.lang.Integer" %>
<%@variable name-given="outcome" variable-class="java.math.BigInteger" scope="AT_BEGIN" %>
<%!public BigInteger fun(int n){
    BigInteger[] num={BigInteger.valueOf(1), BigInteger.valueOf(1), BigInteger.valueOf(2)};
    for(int i=2;i<n;i++)
        num[i % 3]=num[(i - 1) % 3].add(num[(i - 2) % 3]);
    return num[(n-1)%3];
}
%>
<%
    jspContext.setAttribute("outcome",fun(n));
%>